#include <iostream>
#include <numeric>

class Solution
{
public:
    int main()
    {
        int a, b, c;
        std::cin >> a >> b >> c;
        int minSide = std::min(a, std::min(b, c));
        int hypotenuse = std::max(a, std::max(b, c));
        int gcd = Solution::gcd(minSide, hypotenuse);
        std::cout << minSide / gcd << "/" << hypotenuse / gcd;
        return 0;
    }

    static int gcd(int x, int y)
    {
        if (y)
        {
            return gcd(y, x % y);
        }
        else
        {
            return x;
        }
    }
};

#ifndef __LOCAL_TEST__
int main()
{
    return Solution().main();
}
#endif